import qs from 'qs'
import { useLocation } from 'react-router-dom'

export default function RankingDetail(props) {
  const location = useLocation()
  // console.log(location.search) // ?id=bsb&age=18
  // console.log(qs.parse(location.search.slice(1)))
  const result = qs.parse(location.search, { ignoreQueryPrefix: true })
  return <div>RankingDetail: {result.id}</div>
}
